package com.tcm.core.domain.dto;

import com.base.core.tree.TreeEntity;

import java.io.Serializable;
import java.util.List;

public class AreasDTO implements TreeEntity<AreasDTO>, Serializable {
    private Long id;

    private String name;

    private Integer level;

    private Long parentId;

    private String cityCode;

    private String adCode;

    private Double centerlng;

    private Double centerlat;

    private List<AreasDTO> childList;

    private List<AreasDTO> parentList;

    private boolean leaf;

    private boolean expanded;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Long getParentId() {
        return parentId;
    }

    @Override
    public void setChildList(List<AreasDTO> childList) {
        this.childList = childList;
    }

    @Override
    public List<AreasDTO> getChildList() {
        return childList;
    }

    @Override
    public void setParentList(List<AreasDTO> parentList) {
        this.parentList = parentList;
    }

    @Override
    public List<AreasDTO> getParentList() {
        return parentList;
    }

    @Override
    public void setLeaf(boolean leaf) {
        this.leaf = leaf;
    }

    @Override
    public void setExpanded(boolean expanded) {
        this.expanded = expanded;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode == null ? null : cityCode.trim();
    }

    public String getAdCode() {
        return adCode;
    }

    public void setAdCode(String adCode) {
        this.adCode = adCode == null ? null : adCode.trim();
    }

    public Double getCenterlng() {
        return centerlng;
    }

    public void setCenterlng(Double centerlng) {
        this.centerlng = centerlng;
    }

    public Double getCenterlat() {
        return centerlat;
    }

    public void setCenterlat(Double centerlat) {
        this.centerlat = centerlat;
    }

}